package com.example.fist.personRepository;


import com.example.fist.entity.AdminEntity;
import com.example.fist.entity.FatherEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import javax.transaction.Transactional;
import java.util.List;


public interface FatherJpaRepository extends JpaRepository<FatherEntity, Integer> {

    @Query(nativeQuery = true, value = "SELECT * FROM father ")
   List<AdminEntity> getAdmin() ;


}
